package com.tianji.learning.controller;


import com.tianji.learning.domain.vo.PointsBoardSeasonVO;
import com.tianji.learning.service.IPointsBoardSeasonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-04-15
 */
@RestController
@RequestMapping("/boards")// /boards/seasons
@RequiredArgsConstructor
@Slf4j
@Api(tags = "积分排行榜-赛季")
public class PointsBoardSeasonController {
    private final IPointsBoardSeasonService seasonService;
    @GetMapping("/seasons/list")
    @ApiOperation("查询赛季列表")
    public List<PointsBoardSeasonVO> listSeasons(){
        return seasonService.listSeasons();
    }
}
